<?PHP
global $conf;
$h_content=new content;
$h_content->get_content();
$h_content->get_content_addons();

$c_content=new content;
$c_content->input['limit']=true;
$c_content->input['order_by_date']=true;
$c_content->get_category_content();
shuffle($c_content->data);
$category_videos=current($c_content->data);


$cat_content=new content;
$cat_content->options['order'][0]='id';
$cat_content->options['order'][1]='desc';
$cat_content->options['limit'][0]=0;
$cat_content->options['limit'][1]=2;
$cat_content->where['type']='post';
$cat_content->where['index']='true';
$cat_content->get_content();

$z=$cat_content->data;
$category_posts=array_merge((array)$z,(array)$category_videos);
$latest=current($category_posts);
//print_r($latest);
$content_tag="home";
$conf->page_render='assets/pages/home.php';
$conf->style['background']='background-image:url("assets/images/home-sample-bg.jpg");';
$conf->style['background'].='background-color:#000;';
//TODO MAKE a SHARER
	$share_twitter=urlencode($conf->meta['Description']);
	$share_google="http://www.google.com/reader/link?url=".$conf->canonical."&title=".urlencode($conf->meta['page_title'])."&snippet=".urlencode($conf->meta['Description']);
	$share_digg="http://digg.com/submit?url=".$conf->canonical."&title=".urlencode($conf->meta['page_title'])."&bodytext=".urlencode($conf->meta['Description'])."&topic=lifestyle";

	$share_twitter="http://twitter.com/home?status=from @pinoytuner ".urlencode($conf->meta['page_title'])." ".$conf->canonical;
	$share_facebook="http://www.facebook.com/sharer.php?u=".$conf->canonical."&t=".urlencode($conf->meta['page_title']);

$cc=new content;
$category_items=$cc->get_category_items();	
$h1=$cc->get_h1(0,$conf->a['headline-count-home']);
$posts=$cc->get_posts();
?>